<!--  -->
<template>
  <div class="live">
    <div class="header">
      <van-icon name="arrow-left" size="18" @click="goBack()" />
      <p>直播</p>
      <span></span>
    </div>
    <div class="content">
      <dl>
        <dt>
          <video
            src="https://mp4.vjshi.com/2021-06-25/585210c56e346184efb4a45a4fd1bfe0.mp4"
            width="375"
            height="240"
            controls
          ></video>
        </dt>
        <dd>
          <h2>新月商城！直播屋内精装格局</h2>
          <p>精彩回放</p>
        </dd>
      </dl>
      <!-- <dl>
        <dt>
          <video
            src="http://haokan.baidu.com/v?vid=11169013736303538449&sfrom=baidu-feed"
            width="375"
            height="240"
            controls
          ></video>
        </dt>
        <dd>
          <h2>新月商城！直播屋内精装格局</h2>
          <p>精彩回放</p>
        </dd>
      </dl> -->
    </div>
  </div>
</template>

<script>
export default {
  // 组件状态值
  data() {
    return {
      list: [],
    };
  },
  // 计算属性
  computed: {},
  // 组件方法
  methods: {
    //返回上一级
    goBack() {
      this.$router.push("/");
    },
  },
  /**
   * 组件实例创建完成，属性已绑定，但DOM还未生成，$ el属性还不存在
   */
  created() {},
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<!--使用了scoped属性之后，父组件的style样式将不会渗透到子组件中，-->
<!--然而子组件的根节点元素会同时被设置了scoped的父css样式和设置了scoped的子css样式影响，-->
<!--这么设计的目的是父组件可以对子组件根元素进行布局。-->
<style lang="scss" scoped>
.live {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.header {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  color: #fff;
  background: #4381e6;
  padding: 0 15px;
}
.content {
  flex: 1;
  overflow: auto;
}
dl {
  padding: 20px 0;
  position: relative;
  dt img {
    width: 100%;
    height: 200px;
  }
  dd {
    margin: 10px;
    p {
      position: absolute;
      left: 0;
      top: 50px;
      width: 100px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      color: #fff;
      background: #4381e6;
      border-radius: 50px;
    }
  }
}
</style>
